package com.zzyl.nursing.service;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import  com.zzyl.nursing.domain.Device;
import com.zzyl.nursing.dto.DeviceDto;
import com.zzyl.nursing.vo.DeviceDetailVo;
import com.zzyl.nursing.vo.DeviceShadowVo;
import com.zzyl.nursing.vo.ProductVo;

/**
 * nursingService接口
 * 
 * @author lapalace
 * @date 2025-08-03
 */
public interface IDeviceService extends IService<Device>
{
    /**
     * 查询nursing
     * 
     * @param id nursing主键
     * @return nursing
     */
    public Device selectDeviceById(Long id);

    /**
     * 查询nursing列表
     * 
     * @param device nursing
     * @return nursing集合
     */
    public List<Device> selectDeviceList(Device device);

    /**
     * 新增nursing
     * 
     * @param device nursing
     * @return 结果
     */
    public int insertDevice(Device device);

    /**
     * 修改nursing
     * 
     * @param device nursing
     * @return 结果
     */
    public int updateDevice(Device device);

    /**
     * 批量删除nursing
     * 
     * @param ids 需要删除的nursing主键集合
     * @return 结果
     */
    public int deleteDeviceByIds(Long[] ids);

    /**
     * 删除nursing信息
     * 
     * @param id nursing主键
     * @return 结果
     */
    public int deleteDeviceById(Long id);

    void syncProductList();

    List<ProductVo> allProduct();

    void registerDevice(DeviceDto deviceDto);

    DeviceDetailVo queryDeviceDetail(String iotId);

    /**
     * 查询设备上报数据
     * @param iotId
     * @return
     */
    List<DeviceShadowVo> queryServiceProperties(String iotId);
}

